sendClientParams
abstract suspend fun sendClientParams(name: String = "", phone: String = "", fieldSet: Map<Int, String> = emptyMap())
Send client params. You can send name and phone by default. If you want to send other client field, which declared in Chat2Desk service, you need to use CustomField.id property from IChat2Desk.customFields as key and your value
Example of default usage:
sendClientParams("name", "phone")Content copied to clipboard
Example with custom fields:
sendClientParams("name", "phone", mapOf(1 to "value"))Content copied to clipboard
Return
Unit.
Parameters
name
Client name.
phone
Client phone.
fieldSet
Map of custom fields with CustomField.id as key and value of field.